package ar.com.psicosoft.model.psicosoft;

import java.io.Serializable;

import javax.persistence.*;

import java.sql.Timestamp;

/**
 * The persistent class for the informe database table.
 * 
 */
@Entity
@Table(name = "informe", schema = "psicosoft")
@NamedQuery(name = "Informe.findAll", query = "SELECT i FROM Informe i")
public class Informe implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name = "sec_informe", sequenceName = "psicosoft.sec_informe")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sec_informe")
	@Column(name = "\"idInforme\"", unique = true, nullable = false)
	private Integer idInforme;

	private Timestamp baja;

	@Column(nullable = false)
	private Timestamp creacion;

	@Column(length = 2147483647)
	private String fichero;

	@Column(name = "\"ficheroOriginal\"", length = 2147483647)
	private String ficheroOriginal;

	@Column(length = 2147483647)
	private String guardarbd;

	@Column(name = "\"idTratamiento\"", nullable = false)
	private Integer idTratamiento;

	@Column(name = "\"nombreInforme\"", nullable = false, length = 40)
	private String nombreInforme;

	// bi-directional many-to-one association to Tratamiento
	@ManyToOne
	@JoinColumn(name = "\"idTratamiento\"", nullable = false, insertable = false, updatable = false)
	private Tratamiento tratamiento;

	public Informe() {
	}

	public Integer getIdInforme() {
		return this.idInforme;
	}

	public void setIdInforme(Integer idInforme) {
		this.idInforme = idInforme;
	}

	public Timestamp getBaja() {
		return this.baja;
	}

	public void setBaja(Timestamp baja) {
		this.baja = baja;
	}

	public Timestamp getCreacion() {
		return this.creacion;
	}

	public void setCreacion(Timestamp creacion) {
		this.creacion = creacion;
	}

	public String getFichero() {
		return this.fichero;
	}

	public void setFichero(String fichero) {
		this.fichero = fichero;
	}

	public String getFicheroOriginal() {
		return this.ficheroOriginal;
	}

	public void setFicheroOriginal(String ficheroOriginal) {
		this.ficheroOriginal = ficheroOriginal;
	}

	public String getGuardarbd() {
		return this.guardarbd;
	}

	public void setGuardarbd(String guardarbd) {
		this.guardarbd = guardarbd;
	}

	public Integer getIdTratamiento() {
		return this.idTratamiento;
	}

	public void setIdTratamiento(Integer idTratamiento) {
		this.idTratamiento = idTratamiento;
	}

	public String getNombreInforme() {
		return this.nombreInforme;
	}

	public void setNombreInforme(String nombreInforme) {
		this.nombreInforme = nombreInforme;
	}

	public Tratamiento getTratamiento() {
		return this.tratamiento;
	}

	public void setTratamiento(Tratamiento tratamiento) {
		this.tratamiento = tratamiento;
	}

}